module.exports = () => {
	return async (ctx, next) => {
		const t = new Date()
		console.log(`GET: ${JSON.stringify(ctx.query)}`)
		console.log(`POST: ${JSON.stringify(ctx.request.body)}`)
		await next()
		const end = new Date() - t
		console.log(`${ctx.path}, ${end}ms`)
	}
}
